<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/24
 * Time: 20:34
 */


//4D27513279D92A97B3EBC3A7A3C83B2F
//function getList()
//{
//    $url = 'http://songsearch.kugou.com/song_search_v2?keyword=快乐&page=1&pagesize=80&filter=0&bitrate=0&isfuzzy=0&tag=em&inputtype=2&platform=PcFilter&userid=785408929&clientver=8063&iscorrection=3';
//    $res = file_get_contents($url);
//    return json_decode($res,true);
//}
//echo "<pre>";
//print_r(getList());
//de5f20378a9a4c0f05ddb9ac5904aa01
//http://trackercdn.kugou.com/i/?cmd=4&hash=A47B90447AD50D88CE14D4FB378FE288&key=de5f20378a9a4c0f05ddb9ac5904aa01&pid=1&forceDown=0&vip=1
//echo MD5('A47B90447AD50D88CE14D4FB378FE288kgcloud');

function getMusicInfo(){
    $url = 'http://trackercdn.kugou.com/i/?cmd=4&hash=A47B90447AD50D88CE14D4FB378FE288&key=de5f20378a9a4c0f05ddb9ac5904aa01&pid=1&forceDown=0&vip=1';
    $res = file_get_contents($url);
    return json_decode($res,true);
}

echo "<pre>";
print_r(getMusicInfo());
